package javacore.day7;

public class RectangularPerimeter {

	private int width, height;

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public void Perimeter() {
		System.out.println("Perimeter of Rectangular:" + 2 * (width + height));
	}

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		RectangularPerimeter rec = new RectangularPerimeter();
		rec.setHeight(10);
		rec.setWidth(5);
		System.out.println("Width:" + rec.getWidth());
		System.out.println("Height:" + rec.getHeight());

		rec.Perimeter();
	}

}
